package dao;

import java.sql.Connection;
import java.sql.DriverManager;

public class MySqlConnecte {
	
	public Connection getConnection()
	{
		//connecter la base données
		try
		{
			Class.forName("com.mysql.jdbc.Driver");
			return DriverManager.getConnection("jdbc:mysql://localhost:3306/Tourist", "root", "");
		}
		catch(Exception e)
		{
			return null;
		}
	}
}
